/*
 * @Author: 一路向阳 tt_sunzhenfeng@163.com
 * @Date: 2024-02-29 17:27:56
 * @LastEditors: 一路向阳 tt_sunzhenfeng@163.com
 * @LastEditTime: 2024-02-29 17:44:19
 * @FilePath: \react-simple-demo\react-test\src\index.js
 * @Description: 模拟虚拟DOM的实现
 */
import React from 'react';
import ReactDOM from 'react-dom';

/*
  var ele = React.createElement("div", {title: "hello"}, React.createElement(
      "h3", { className: "title" }, "hello,react"
    )
  );
*/

const ele = (
    <div title='hello'>
        <h3 className='title'>hello,react</h3>
    </div>
)




// jsx: javascript+xml 虚拟DOM  语法糖
ReactDOM.render( ele , document.querySelector('#root'));